﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Utility1;

namespace eDream.Page
{
    public partial class result : System.Web.UI.UserControl
    {
        public string pathUrl = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {

                pathUrl = WebUtils.pathUrl();

                String k="";

                try
                {
                    k = Request.QueryString["K"].ToString();
                   
                }
                catch (Exception) { }
                if (!IsPostBack)
                {
                    String sql = String.Format("select * from uf_timkiem_sanpham('{0}',{1})", k,1);
                    Xuly xl = new Xuly();
                    rpt1.DataSource = xl.ExcuteSQL_Table(sql);
                    rpt1.DataBind();
                }
            }
            catch (Exception) { }
        }
    }
}